import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

// 大底入库单号查询
export const BottomWarehouseEntryNumber = (parms:any) => {
    return service.post<any,any>(`/mtlCheckFin/getPcMtlCheckFin`,parms)
}

// 入库明细查询
export const InventoryDetailsQuery = (reqNo:string) => {
    return service.get<any,any>(`/mtlCheckFin/getPcMtlCheckFinDetail?recNo=${reqNo}`)
}

// 备注信息查询
export const remarkQuery = () => {
    return service.get<any,any>(`/mtlCheckFin/getDetails`)
}

// 打勾检核
export const CheckWithCheckmark = (choose:number,parms:any) => {
    return LoginWork.post<any,any>(`/mtlCheckFin/optionPcMtlCheck?choose=${choose}`,parms)
}

// 子材料明细查询
export const QueryOfSubMaterialDetails = (mtlNo:string) => {
    return service.get<any,any>(`/mtlCheckFin/getSdBomFitSub?mtlNo=${mtlNo}`)
}

// 备注确认
export const RemarksConfirmation = (remark:string,parms:any) => {
    return LoginWork.post<any,any>(`/mtlCheckFin/clickPcMtlCheck?remark=${remark}`,parms)
}

// 保存
export const preserve = (parms:any) => {
    return LoginWork.post<any,any>(`/mtlCheckFin/savePcMtlCheck`,parms)
}

// 材料明细查询
export const MaterialDetailsInquiry = (parms:any) => {
    return service.post<any,any>(`/mtlCheckFin/getSurfaceMtl`,parms)
}

// 取单价
export const ChargingUnitPrice = (parm:any) => {
    return LoginWork.post<any,any>(`/mtlCheckFin/getUnitPrice`,parm)
}